<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">


<head>
<title>Affichage Contact</title>
<link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css" />
</head>
<body>
	<div class="navbar navbar-default navbar-fixed-top">
		<div class="container">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle"></button>
				<a class="navbar-brand">Projet MDOC</a>
			</div>
			<div class="navbar-collapse collapse">
				<ul class="nav navbar-nav">
					<li class="active"><a href="mainPage.xhtml">Home</a></li>
					<li class="active"><a href="addContact.xhtml">Add Contact</a></li>
					<li class="active"><a href="searchContact.xhtml">Modify/Delete
							Contact</a></li>
					<li class="active"><a href="searchContact.xhtml">Search
							Contact</a></li>
				</ul>
			</div>
		</div>
	</div>
	<br />
	<br />
	<br />
	<h1>Veuillez selectionner un contact à modifier</h1>
	<div class="container">
		<h:form>
			<h:dataTable id="table"
				value="#{searchContactController.listContact}" var="list" border="1"
				styleClass="table table-bordered">
				<f:facet name="header">
					<h:outputText value="id" />
				</f:facet>
				<h:outputText type="hidden" value="#{list.contact.id}" />
				<f:facet name="header">
					<h:outputText value="version" />
				</f:facet>
				<h:outputText type="hidden" value="#{list.contact.version}" />
				<h:column>
					<f:facet name="header">
						<h:outputText value="firstName" />
					</f:facet>
					<h:outputText value="#{list.contact.firstName}" />
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="lastName" />
					</f:facet>
					<h:outputText value="#{list.contact.lastName}" />
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="email" />
					</f:facet>
					<h:outputText value="#{list.contact.email}" />
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="update" />
					</f:facet>
					<h:selectBooleanCheckbox value="#{list.selectedUpdate}" />
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="delete" />
					</f:facet>
					<h:selectBooleanCheckbox value="#{list.selectedDeleted}" />
				</h:column>
			</h:dataTable>
			<h:commandButton action="#{searchContactController.loadContact}"
				value="Modify Contact" type="submit" class="btn btn-primary" />
				&nbsp;
			<h:commandButton action="#{searchContactController.deleteContact}"
				value="Delete Contact" type="submit" class="btn btn-danger" />
		</h:form>
	</div>
</body>
</html>